<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/view/jsp/admin/includes/taglibs.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>积分策略列表</title>
    <%@ include file="/WEB-INF/view/jsp/admin/includes/meta.jsp" %>
    <link type="text/css" rel="stylesheet" href="${ctx}/admin/css/admin.css" />
  	<link href="${ctx}/widgets/extremecomponents/extremecomponents.css" type="text/css" rel="stylesheet" />
	<script type="text/javascript">
		function go(url)
		{
			window.location.href = url;
		}
		function deleData(url)
		{
			if(confirm("确定要删除吗？"))
			{
				window.location.href = url;
			}
		}
	</script>
	</head>
	<body>
		<div class="container">
			<h3>
				积分策略列表
			</h3>
			<!-- start user list -->
			<ec:table items="page.result" var="creditRuleAmount" rowsDisplayed="10"
				autoIncludeParameters="true" retrieveRowsCallback="limit"
				action="${ctx}/admin/creditRuleAmount!list.do">
				<ec:row highlightRow="true">
					<ec:column property="rowcount" cell="rowCount" sortable="false"
						title="序号" width="30" />
					
					<ec:column property="creditRule.name" title="积分规则" width="100"/>
					<ec:column property="creditType.name" title="积分类型" width="100"/>
					<ec:column property="amout" title="积分值"  width="100" sortable="true"/>
					
					<ec:column property="null" title="动作" sortable="false" width="72" viewsAllowed="html">
						<security:authorize ifAnyGranted="ROLE_ADMIN">
							<a href="#" class="ref"
								onclick="javascript:go('${ctx}/admin/creditRuleAmount!edit.do?id=${creditRuleAmount.id}');">修改</a>
						</security:authorize>
					</ec:column>
					
				</ec:row>
			</ec:table>
			<!-- end user list -->
			<div id="footer" class="footer">
				<security:authorize ifAnyGranted="ROLE_ADMIN">
					<input type="button" class="button"
						onclick="javascript:go('${ctx}/admin/creditRuleAmount!input.do');"
						value='增加新积设置' />
				</security:authorize>
			</div>
		</div>
	</body>
</html>